package a03;

public class Test {
    public static void main(String[] args) {
        Animal a=new Dog();
        Animal b = new Cat();
        Person c1=new Person("老王",30);
        Person c2=new Person("老李",25);
        a.setCollor("黑");
        a.setAge(2);
        b.setCollor("灰");
        b.setAge(3);
        c1.keepPet(a,"骨头");
        c2.keepPet(b,"鱼");
    }
}
